package com.jhy.study2.enumt;

public enum Color {
    RED("小红",0),
    GREEN("小绿",0),
    YELLOW("小黄",0),
    WHITE;


    Color(){}
    Color(String name,int index){
        this.name = name;
        this.index = index;
    }

    private String name;
    private int index;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }




}
